package com.example.control;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class OneTest {
    @ResponseBody
    @RequestMapping("test")
    public String test(){
        return "the first boot";
    }


    @RequestMapping("test02")
    public @ResponseBody Map<String,String> test02(){
        Map<String, String> stringStringMap = new HashMap<>();
        stringStringMap.put("k1","b2");
        return stringStringMap;
    }
}
